package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.CustomerReturnListGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 杨林
 * @create 2023-01-28 16:21 星期六
 * description:
 */
public interface CustomerReturnListGoodsDao {
    /**
     * 获取退货商品总数量
     * @param goodsId
     * @return
     */
    Integer getSumReturnGoods(@Param("goodsId") Integer goodsId);

    /**
     * 批量保存
     * @param customerReturnListGoodsList
     */
    void bachSave(@Param("customerReturnListGoodsList") List<CustomerReturnListGoods> customerReturnListGoodsList);

    /**
     * 退货单商品信息
     * @param customerReturnListId
     * @return
     */
    List<CustomerReturnListGoods> goodsList(@Param("customerReturnListId") Integer customerReturnListId);


    /**
     * 根据customerReturnListId获取退货单下的商品信息
     * @param customerReturnListId
     * @return
     */
    List<CustomerReturnListGoods> ifHasCustomerReturnListGoods(@Param("customerReturnListId") Integer customerReturnListId);
}
